namespace java com.duowan.realtime.thirft.api

exception HyperLogLogException {
  1: string errorCode,
  2: string message,
}

struct HyperLogLogQuery {
	1: string group, // 维度组
	2: list<string>  values // 元素组
	
}

service HyperLogLogService{ 
	map<string,i32> offerForCardinality(1:string hllGroup,2:list<HyperLogLogQuery>  hllQueryList) throws (1:HyperLogLogException e);
	string ping() throws (1:HyperLogLogException e);
	void offer(1:string hllGroup,2:list<HyperLogLogQuery> hllQueryList) throws (1:HyperLogLogException e);
	i64 cardinality(1:string hllGroup,2:string group) throws (1:HyperLogLogException e);
	list<map<string,string>> keys(1:string hllGroup,2:string key) throws (1:HyperLogLogException e);
}